package cn.itsource.controller.html;

import cn.itsource.domain.BlogParam;
import cn.itsource.service.BlogParamService;
import cn.itsource.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RequestMapping("/html/blogParam")
@RestController
public class HtmlBlogParamController {
    @Autowired
    private BlogParamService service;
    //    查看全部数据
    @GetMapping("/getAllParam")
    public AjaxResult getAllParam() {
        List<BlogParam> all = service.findAll();
        return AjaxResult.Success(all);
    }
}
